package com.example.leetcode.graph;

import com.example.leetcode.array.common.ArrayUtils;
import com.example.leetcode.graph.common.GraphUtils;

import java.util.List;

class Solution1192 {
    public List<List<Integer>> criticalConnections(int n, List<List<Integer>> connections) {
//        return GraphUtils.criticalConnections(n, connections);
//        return GraphUtils.criticalConnections2(n, connections);
        return GraphUtils.criticalConnections3(n, connections);
//        return GraphUtils.criticalConnections1(n, connections);
    }
}

public class leetcode1192 {
    public static void main(String[] args) {
        Solution1192 solution1192 = new Solution1192();
        int[][] connections = {{0, 1}, {1, 2}, {2, 0}, {1, 3}};
        List<List<Integer>> array = ArrayUtils.convertArrayToList(connections);
        System.out.println(solution1192.criticalConnections(4, array));
    }
}
